package cn.lin.service.impl;

import cn.lin.mapper.HeaderMapper;
import cn.lin.service.HeaderService;
import cn.lin.util.WeekUtil;
import cn.lin.vo.HeaderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Mr.s huang
 * @Date: 2024/12/3
 */
@Service
public class HeaderServiceImpl implements HeaderService {

    @Autowired
    private HeaderMapper headerMapper;

    @Override
    public List<HeaderVO> showHeaderInfo(Integer id) {
        List<HeaderVO> list = headerMapper.showHeaderInfo(id);
        return new WeekUtil().countTotalWeek(list);
    }

}
